Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update recover-statements.md #876

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kayaklee
Copy link
Contributor

What problem does this PR solve?

This PR is try to fix #721

How to contact you?

  • Email:
  • Telephone:
  • WeChat:
  • Others:

@AndreMouche AndreMouche self-requested a review April 15, 2020 03:55
@AndreMouche AndreMouche added this to the 社区第一次审核 milestone Apr 15, 2020
Copy link
Collaborator

@AndreMouche AndreMouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

session3/chapter5/recover-statements.md Outdated Show resolved Hide resolved
@@ -120,7 +120,7 @@ MySQL [test]> ADMIN SHOW DDL JOBS;
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
```

从 DDL 记录可以看到,我们一共执行了 2 次 drop table t2 的操作,如果只执行 recover table t2 恢复的是最近一次删除的表。如果我希望恢复前面一次删除的动作,就需要用到下面的命令
从 DDL 记录可以看到,我们一共执行了 2 次 drop table t2 的操作,如果只执行 recover table t2恢复的是最近一次删除的表。如果我希望恢复前面一次删除的动作,就需要用到下面的命令
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面这个执行结果,如果在纸质版本或者 PDF 上肯能是个灾难。。要不然改成截图,或者 ADMIN SHOW DDL JOBS\G;?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不会,pdf 可以兼容 markdown 的格式


对于 DBA 来说,删库跑路永远是被调侃的哏,近在眼前的某微商平台的大面积宕机事件给企业管理人员及数据库运维团队带来的启示仍在被不断讨论。当然为了应对大面积的恶意删库跑路行为,可能真的是防不胜防,不过这种情况也非常罕见。但是大家尤其是线上运维 DBA 在维护数据库的过程中,出现删错表/库的情况却是很容易出现的,下面来看一下 TiDB 提供的快速恢复误删表的功能。
对于 DBA 来说,删库跑路永远是被调侃的梗,近在眼前的某微商平台的大面积宕机事件给企业管理人员及数据库运维团队带来的启示仍在被不断讨论。当然为了应对大面积的恶意删库跑路行为,可能真的是防不胜防,不过这种情况也非常罕见。但是大家尤其是 DBA 在维护数据库的过程中,出现误删表/库的情况却是很容易出现的,下面来看一下 TiDB 提供的快速恢复误删表的功能。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
对于 DBA 来说,删库跑路永远是被调侃的梗,近在眼前的某微商平台的大面积宕机事件给企业管理人员及数据库运维团队带来的启示仍在被不断讨论。当然为了应对大面积的恶意删库跑路行为,可能真的是防不胜防,不过这种情况也非常罕见。但是大家尤其是 DBA 在维护数据库的过程中,出现误删表/库的情况却是很容易出现的,下面来看一下 TiDB 提供的快速恢复误删表的功能。
对于 DBA 来说,删库跑路永远是被调侃的梗,近在眼前的某微商平台的大面积宕机事件给企业管理人员及数据库运维团队带来的启示仍在被不断讨论。当然为了应对大面积的恶意删库跑路行为,可能真的是防不胜防,不过这种情况也非常罕见。但是大家,尤其是 DBA 在维护数据库的过程中,出现误删表/库的情况却是很容易出现的,下面来看一下 TiDB 提供的快速恢复误删表的功能。

@CLAassistant
Copy link

CLAassistant commented Dec 9, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ yubai
❌ AndreMouche


yubai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

第三部分 5.2 利用 Recover/Flashback 命令秒恢复误删表
5 participants